import { https } from "@/api/api";
import { showToast } from "@/public";
import { defineStore } from "pinia";
import { ref } from "vue";
const useOrderStore = defineStore("orderStore", () => {
    //   记录 套餐详情
    const menuDetail = ref({});
    //   确认设备收货
    const apiDeviceReceive = () => {
        return new Promise( async (reslove) => {
            const res = await https({
                mode: 'order',
                name: 'apiDeviceReceive'
            });
            showToast(res.msg);
            reslove(res.code);
        })
    }
    return {
        menuDetail,
        apiDeviceReceive
    };
});
export default useOrderStore;
